#include <cuda_runtime.h>
#include "device_function.cuh"

//__device__ __constant__ float offset = 0;


__device__ __constant__ float table = 0;

__global__ void vectorAdd(const float *A, const float *B, float *C, int numElements)
{
	int i = blockDim.x * blockIdx.x + threadIdx.x;

	if (i < numElements)
	{

		my_add(C+i, B[i], A[i], table);
	}
}

void gogogo(int blocksPerGrid, int threadsPerBlock, float* d_A, float *d_B, float *d_C, int numElements){
	vectorAdd <<< blocksPerGrid, threadsPerBlock >> > (d_A, d_B, d_C, numElements);
}